var path = require('path'); 
var ExtractTextPlugin = require("extract-text-webpack-plugin"); 
module.exports = { 
	entry: ['./src/app.js'], 
	output: { path: path.resolve(__dirname, 'build'), filename: 'index2.0.js' }, 
	module: { loaders: [
		{ test: /\.css$/, 
		  loader: ExtractTextPlugin.extract("style-loader", "css-loader") },
		 { loader: 'babel-loader', 
		 exclude: /node_modules/, 
		 test: /\.js$/, 
		 query: { presets: ['es2015', 'react', 'stage-0'], }, }] }, 

		 plugins: [ new ExtractTextPlugin("style.css", { allChunks: true }) ] 
		};
